package com.ywqf_api.dao;

import com.ywqf_api.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerLoginDao {

    public UserLogin loginPhone(@Param("phoneNum") String phoneNum);

    public int addLogin(@Param("telephone") String telephone, @Param("password") String password);

    public int updateUser(@Param("telephone") String telephone, @Param("password") String password);

    public int updatePasswordByCustomerId(@Param("telephone") String telephone, @Param("password") String password,@Param("newPassword")String newPassword);

    public UserLogin getPasswordByCustomerId(@Param("customerId") int customerId);

    public int updateTelephone(@Param("newTelephone") String newTelephone,@Param("telephone") String telephone, @Param("password") String password);

    public UserLogin getPasswordAndTelephone(@Param("phoneNum") String phoneNum);

    public UserAll selectAllOfTelephone(@Param("password")String password,@Param("telephone")String telephone);

    public int selectPastTel(@Param("newTelephone")String newTelephone);

    public Parking findUserPark(@Param("houseId") int houseId);

    public House findUserHouse(@Param("houseId") int houseId);

    public String findServiceEndTime(@Param("houseId") int houseId);

    public All findAll(@Param("houseId") int houseId);

    public WaterPay findWaterPay(@Param("houseId") int houseId);

    public ElectricityPay findElectricityPay(@Param("houseId") int houseId);

    public HeatingPay findHeatingPay(@Param("houseId") int houseId);
    //查询状态正常的用户
    public int getHouseId(@Param("customerId") int customerId);
    //历史缴费记录
    public List<EstateFeePaymentHistory> payHistory(@Param("houseId") int houseId);

    //缴费次数
    public int payHistoryCount();
    //采暖费订单查询
    public List<HeatingPaid> heatingPayMsg(@Param("houseId") int houseId);

    //家政服务订单查询
    public List<EstatePay> housekeepingPay(@Param("houseId") int houseId);

}
